package com.emily.test.service.impl;

import com.emily.test.mapper.OPartnerMapper;
import com.emily.test.model.OPartner;
import com.emily.test.service.PartnerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ：zc
 * @date ：Created in 2019/4/2 13:06
 * @description：
 */
@Service
public class PartnerServiceImpl implements PartnerService {
    @Resource
    private OPartnerMapper oPartnerMapper;

    @Override
    public int updeae(OPartner oSlideshow) {
        return oPartnerMapper.update(oSlideshow);
    }

    @Override
    public int insert(OPartner oSlideshow) {
        return oPartnerMapper.insertSelective(oSlideshow);
    }

    @Override
    public void deleteByIds(int id) {
        oPartnerMapper.deleteByIds(id);
    }

    @Override
    public List<OPartner> selectList(String code) {
        return oPartnerMapper.selectList(code);
    }

    @Override
    public OPartner selectPartner(int id) {
        return oPartnerMapper.selectPartner(id);
    }
}
